<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      th:replace="fragments/layout(title='院内通知-添加',jsPaths='/static/plugins/ueditor/ueditor.config.js,/static/plugins/ueditor/ueditor.all.min.js,/static/js/system/advice/add.js')">
<div class="right" th:fragment="right">
            <!--面包屑-->
            <div class="breadcrumb layui-bg-gray">
                <span class="layui-breadcrumb" lay-separator=">">
                    <a th:href="@{/}">首页</a>
                    <a href="/advice/ui/list">通知公告</a>
                    <a href="/advice/ui/list">院内通知</a>
                    <a><cite>编辑</cite></a>
                </span>
            </div>

            <!--主体内容区-->
            <div class="form-content layui-container">
                    <form class="layui-form" th:action="@{/advice/update}" method="post">
                        <div class="layui-form-item">
                            <label class="layui-form-label must">标题</label>
                            <div class="layui-input-block">
                               <!-- 1:民政部门通知 2:养老机构通知-->
                                <input type="hidden" name="type" value="2">
                                <input type="hidden" name="id" th:value="${advice.id}">
                                <input type="text" name="title"  maxlength="30" placeholder="请输入发布的标题" autocomplete="off" class="layui-input" th:value="${advice.title}">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label must">内容</label>
                            <div class="layui-input-block">
                                <textarea id="editor" name="content"  type="text/plain" style="width:100%;height:500px;" th:text="${advice.content}"></textarea>
                            </div>
                        </div>

                        <div class="layui-form-item">
                            <div class="layui-input-block">
                                <button class="layui-btn  layui-btn-normal" lay-submit lay-filter="submitBtn">保存</button>
                                <a href="/advice/ui/list" class="layui-btn layui-btn-primary">返回</a>
                            </div>
                        </div>
                    </form>

            </div>
        </div>
</html>